package main

import (
	"gitee.com/kelvins-io/kelvins"
	"gitee.com/kelvins-io/kelvins-template/startup"
	"gitee.com/kelvins-io/kelvins/app"
)

const APP_NAME = "kelvins-template"

func main() {
	application := &kelvins.GRPCApplication{
		Application: &kelvins.Application{
			LoadConfig: startup.LoadConfig,
			SetupVars:  startup.SetupVars,
			StopFunc:   startup.StopFunc,
			Name:       APP_NAME,
		},
		RegisterGRPCHealthHandle: startup.RegisterGRPCHealthHandle,
		RegisterGRPCServer:       startup.RegisterGRPCServer,
		RegisterGateway:          startup.RegisterGateway,
		RegisterHttpRoute:        startup.RegisterHttpRoute,
	}
	app.RunGRPCApplication(application)
}
